var stream = require('fs')
var path = require('path')

var filePath = path.join(__dirname,'/2.txt')

var writeable = stream.createWriteStream(filePath)

writeable.write('hello world')
writeable.end()